package site.wanjiahao;

import com.sun.org.apache.bcel.internal.generic.NEW;
import site.wanjiahao.printer.BinaryTrees;
import site.wanjiahao.tree.AVLTree;
import site.wanjiahao.tree.BST;
import site.wanjiahao.tree.BinaryTree;

public class Main {

    public static void main(String[] args) {
        AVLTree<Object> avl = new AVLTree<>();

        Integer[] ins = new Integer[]{61, 27, 87, 21, 40, 76, 95, 4};

        for (Integer in : ins) {
            avl.add(in);
        }

        BinaryTrees.print(avl);

        avl.remove(40);
        System.out.println();
        BinaryTrees.print(avl);





    }
}
